package com.cj.mobile.iabp.app.utils;

import com.cj.mobile.iabp.mvp.model.entity.AllHeadBank;

import java.util.Comparator;

public class PinyinComparator implements Comparator<AllHeadBank> {

	public int compare(AllHeadBank o1, AllHeadBank o2) {
		if (o1.getSortLetters().equals("@") || o2.getSortLetters().equals("#")) {
			return -1;
		} else if (o1.getSortLetters().equals("#")
				|| o2.getSortLetters().equals("@")) {
			return 1;
		} else {
			return o1.getSortLetters().compareTo(o2.getSortLetters());
		}
	}

}
